home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
util
/
misc
/
random.rea
< prev
next >
Wrap
Text File
|
1995-09-26
|
543b
|
20 lines
Short: Reads lines from stdin and outputs them in random order. Source only.
Uploader: veijalai@cc.lut.fi
Util for randomizing order of lines of text.
Handles unlimited amount of lines. Line length is not limited.
On Linux, for example,
ls *.jpg | random | head -n 3 | awk 'BEGIN {printf "zgv "} {printf $1}' >/tmp/xxx;sh /tmp/xxx
would show 3 random jpegs.
This tiny util should compile on most systems.
On Linux, "gcc -s -O2 -N random.c -o /usr/local/bin/random".
Only source is included (I don't have a C compiler for Amiga).